# -*- coding: utf-8 -*-

import cv2 as cv
import numpy as np

IMG_INPUT_FILE = "../../../imgs/pc_cocal.jpg"
IMG_OUTPUT_DIR = "../../../imgs/output"

img = cv.imread(IMG_INPUT_FILE)
rows, cols, ch = img.shape

pts1 = np.float32([[50, 50],
                   [200, 50],
                   [50, 200]])
pts2 = np.float32([[10, 100],
                   [200, 50],
                   [100, 250]])
M = cv.getAffineTransform(pts1, pts2)
dst = cv.warpAffine(img, M, (cols, rows))

